﻿using System.Collections;
using UnityEngine;

namespace Assets.Scripts.Tool
{
    /// <summary>
    /// 修改时间：2017/6/8
    /// 功能：销毁工具类
    /// </summary>
    public class DestroyTool : MonoBehaviour
    {
        void Start()
        {
            //开始销毁自身
            StartCoroutine(DestroySelf());
        }

        IEnumerator DestroySelf()
        {
            yield return new WaitForSeconds(1.5f);
            Destroy(this.gameObject);
        }     
    }
}
